package com.gexiao.expand.service;

import cn.hutool.core.lang.Console;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @EventListener(classes = {ApplicationEvent.class})
    public void register(ApplicationEvent event){
        Console.log("UserService监听到的事件：{}",event);
    }
}
